//求数组中的最大值
#include <iostream>
using namespace std;
int main()
{
    int arr[5];
    for(int i=0;i<5;i++){
        cin>>arr[i];
    }
    int min=9999;
    int max=-1;
    for(int i=0;i<5;i++){
        if(arr[i]>max){
            max=arr[i];
        }
        if(arr[i]<min){
            min=arr[i];
        }
    }
    cout<<"max:"<<max<<endl;
    cout<<"min:"<<min<<endl;
    return 0;
}